import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'
// react-redux ：容器组件将 redux 中的状态和操作状态的方法，通过 props 传递
import { Provider } from 'react-redux'
import store from './store'
// 导入语言包
import zhCN from 'antd/lib/locale/zh_CN'
// ConfigProvider 使用 React 的 context 特性
// 在应用外围包裹一次即可全局生效
import { ConfigProvider } from 'antd';

ReactDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
    <App />
    </ConfigProvider>
  </Provider>,
  document.getElementById('root')
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()
